package com.eascs.workflow.common.entity.sys;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 用户访问日志
 */
@Entity
@Table(name = "o2o_user_log")
public class UserLogEntity implements Serializable {
    private static final long serialVersionUID = 1L;

    @Column(name = "id")
    @Id
    private long id;

    @Column(name = "login_name")
    /** 登陆用户名*/
    private String loginName;

    /* 访问Ip*/
    private String ip;

    /* 主机域名*/
    @Column(name = "server_name")
    private String serverName;
    
    /* 访问url*/
    private String url;

    /* 客户端refer*/
    private String refer;
    
    /** 请求参数（get）*/
    private String params;

    /* 客户端agent*/
    private String agent;

    private String content;

    @Column(name = "create_time")
    private Date createTime;

    @Column(name = "is_remove")
    private int isRemove;

    public long getId() {
        return id;
    }

    public void setId(long id) {
        this.id = id;
    }

    public String getLoginName() {
        return loginName;
    }

    public void setLoginName(String loginName) {
        this.loginName = loginName;
    }

    public String getIp() {
        return ip;
    }

    public void setIp(String ip) {
        this.ip = ip;
    }
    
    public String getServerName() {
		return serverName;
	}

	public void setServerName(String serverName) {
		this.serverName = serverName;
	}

	public String getUrl() {
        return url;
    }

    public void setUrl(String url) {
        this.url = url;
    }

    public String getRefer() {
        return refer;
    }

    public void setRefer(String refer) {
        this.refer = refer;
    }

    public String getAgent() {
        return agent;
    }

    public void setAgent(String agent) {
        this.agent = agent;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public int getIsRemove() {
        return isRemove;
    }

    public void setIsRemove(int isRemove) {
        this.isRemove = isRemove;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

	public String getParams() {
		return params;
	}

	public void setParams(String params) {
		this.params = params;
	}
    
}
